<template>
  <div>
    <el-timeline>
      <el-timeline-item
        v-for="(activity, index) in activities"
        :key="index"
        :icon="activity.icon"
        :type="activity.type"
        :color="activity.color"
        :size="activity.size"
        :timestamp="activity.timestamp">
        {{activity.content}}
      </el-timeline-item>
    </el-timeline>
  </div>
</template>
<script lang="ts">
export default {
    data() {
      return {
        activities: [{
          content: '通知1',
          timestamp: '2018-04-12 20:46',
          size: 'large',
          type: 'primary',
          icon: 'el-icon-more'
        }, {
          content: '通知2',
          timestamp: '2018-04-03 20:46',
          size: 'large',
          type: 'success',
          icon: 'el-icon-more',
          color: '#0bbd87'
        }, {
          content: '通知3',
          timestamp: '2018-04-03 20:46',
          size: 'large',
          type: 'danger',
          icon: 'el-icon-more',
        }, {
          content: '通知4',
          timestamp: '2018-04-03 20:46',
          size: 'large',
          type: 'warning',
          icon: 'el-icon-more',
        }]
      };
    }
  };
</script>
<style lang="scss" scoped>
</style>
